package top.monddia.netty.server.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Netty配置
 *
 * @author ZYP
 */
@Component
@ConfigurationProperties(prefix = "netty")
@Data
public class NettyConfig {

    private String host;
    private int port;
    private int bossCount;
    private int workCount;
    private boolean soKeepalive;
    private int soBacklog;
    private int idleReader;
    private int idleWriter;
    private int idleAll;
}
